package cn.bandeqing.userWallet.entity;

import cn.bandeqing.frame.mybatis.config.InsertOrUpdateListener;
import cn.bandeqing.frame.mybatis.entity.BaseEntity;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * 用户余额 实体类。
 *
 * @author fugui
 * @since 2024-01-28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "bdq_user_wallet", onInsert = InsertOrUpdateListener.class, onUpdate = InsertOrUpdateListener.class)
public class UserWallet extends BaseEntity {

    /**
     * 用户ID
     */
    @Id
    private Long usId;

    /**
     * 用户昵称
     */
    private String usNickName;

    /**
     * 用户余额
     */
    private Double usBalance;

    /**
     * 用户总提现金额
     */
    private Double usTotalCashMoney;

}
